class Message<T> {
    private T message ;
    public T getMessage() {
        return message;
    }
    public void setMessage(T message) {
        this.message = message;
    }
}
public class Test3 {

    public static void main(String[] args) {
        Message<Integer> message = new Message() ;
        message.setMessage(10);
        fun(message);
    }
    public static void fun(Message<?> temp){
        System.out.println(temp.getMessage());
    }

    public static void main1(String[] args) {
        Message<String> message = new Message() ;
        message.setMessage("中土世界欢迎您");
        fun(message);
    }
}
